﻿using System;
using System.Collections.Generic;
using System.Linq;
//using System.Timers;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using OnlineMediaAnalyzer.Migrations;

using OnlineMediaAnalyzer.Models;

namespace OnlineMediaAnalyzer
{
    public class MvcApplication : System.Web.HttpApplication
    {
        //private Timer _timer;
        public static bool TaskScheduled = false;

        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            /*
            _timer = new Timer(60 * 60 * 1000); // 60 * 1 minute
            _timer.Elapsed += (sender, e) => ScheduledTask.Process();
            _timer.Enabled = true;*/
            /*
            TaskScheduler.Start();
            TaskScheduled = true;*/
        }
    }
}
